package com.example.adapter;

/**
 * Created by Risky57 on 2017/4/28.
 */

public class FlyAdapter implements FlyBehavior {

    private Pig pig;

    public FlyAdapter (Pig pig) {
        this.pig = pig;
    }

    @Override
    public void fly () {
        pig.run();
    }
}
